package com.jieao.content.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jieao.framework.util.ShiroUtils;
import lombok.Data;

import javax.validation.constraints.Negative;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description 文章
 * @Author weifanl
 * @Date2020/5/21 15:34
 **/
@Data
@TableName("content_catalog")
public class Catalog implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    private  Long   id;			//目录id
    private  Long   parentId;			//父级id
    private  String   ancestors;			//祖级列表
    private  String   catalogName;			//目录名称
    private  Integer   orderNum;			//显示顺序
    private  String   status;			//目录状态（0停用 1正常）

    @TableLogic
    private  Integer   delFlag;			//删除标志（0代表存在 2代表删除）

    private  String   createBy;			//创建者
    private  Date   createTime;			//创建时间
    private  String   updateBy;			//更新者
    private  Date   updateTime;			//更新时间
    /** 备注 */
    private String remark;

    private String module;

    public Catalog(){
        this.delFlag = 0;
        this.updateBy = ShiroUtils.getLoginName();
        this.updateTime = new Date();
    }
}
